import Vue from 'vue'
import Router from 'vue-router'

//
// components ----- login ----- 下的路由
//

// 测试获取Token
import loading from '@/components/loading'

// 获取正式的私密Token
import getIntimate from '@/components/login/getIntimate'

// 登录
import login from '@/components/login/login'

// 注册
import register from '@/components/login/register'

// 实名认证
import real from '@/components/login/real'

// 找回密码
import findPassword from '@/components/login/find-password'

// 账号安全
import safe from '@/components/login/safe'

// 设置
import set from '@/components/login/set'

// 推荐有奖
import prize from '@/components/login/prize'

// 我的钱包
import wallet from '@/components/login/wallet'

// 我的订单
import myOrder from '@/components/login/order'

// 我的详情
import mineDesc from '@/components/login/mine-desc'

//
// components ----- home ----- 下的路由
//

// 首页
import HomeIndex from '@/components/home/index'

//
// components ----- estimate-price ----- 下的路由
//

// 预估价格
import estimatePrice from '@/components/estimate-price/estimate-price'

// 计价规则
import estimatePriceDesc from '@/components/estimate-price/estimate-price-desc'

// 支付详情
import setimateDes from '@/components/estimate-price/estimate-desc'

// 费用详情

//
// components ----- car-rider ----- 下的路由
//

// 乘车人
import carRider from '@/components/car-rider/car-rider'

// 上车地点选择
import whereUps from '@/base/choose-type/up-car'

// 下车地点选择
import whereDowns from '@/base/choose-type/down-car'

//
// components ----- driver-score ----- 下的路由
//

// 司机评价
import driverScore from '@/components/driver-score/driver-score'

//
// components ----- driver-score ----- 下的路由
//

// 支付页面
import costInfo from '@/components/costInfo/costInfo'

// base ------------------- 基本组件 -- 路由

// 需要知道
import need from '@/base/need-know/need-know'

// 没有应答
import nocall from '@/base/nocall/nocall'

// 呼叫专车
import callSpecial from '@/base/call-special/call-special'

// 航班的名称
import flight from '@/base/flight-info/flight'

// 航班信息 -- 选择的时间
import flightInfo from '@/base/flight-info/flight-info'

// 预约成功
import reservation from '@/base/suc-reservation/suc-reservation'

// 接单司机信息
import orderDetails from '@/base/order-details/order-details'

// 到达后多就上车
import arrivalTime from '@/base/flight-info/arrival-time'

//一口价
import surePrice from '@/sureprice/index'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/index'
        },
        {
            path: '/loading',
            component: loading
        },
        {
            path: '/getIntimate',
            component: getIntimate
        },
        {
            path: '/index',
            component: HomeIndex
        },
        {
            path: '/login',
            component: login
        },
        {
            path: '/register',
            component: register
        },
        {
            path: '/real',
            component: real
        },
        {
            path: '/findpassword',
            component: findPassword
        },
        {
            path: '/safe',
            component: safe
        },
        {
            path: '/set',
            component: set
        },
        {
            path: '/prize',
            component: prize
        },
        {
            path: '/wallet',
            component: wallet
        },
        {
            path: '/myOrder',
            component: myOrder
        },
        {
            path: '/mineDesc',
            component: mineDesc
        },
        {
            path: '/estimateprice',
            component: estimatePrice
        },
        {
            path: '/estimatepricedesc',
            component: estimatePriceDesc
        },
        {
            path: '/setimatedes',
            component: setimateDes
        },
        {
            path: '/carrider',
            component: carRider
        },
        {
            path: '/driverScore',
            component: driverScore
        },
        {
            path: '/costInfo',
            component: costInfo
        },
        {
            path: '/need',
            component: need
        },
        {
            path: '/nocall',
            component: nocall
        },
        {
            path: '/callSpecial',
            component: callSpecial
        },
        {
            path: '/flight',
            component: flight
        },
        {
            path: '/flightInfo',
            component: flightInfo
        },
        {
            path: '/reservation',
            component: reservation
        },
        {
            path: '/orderDetails',
            component: orderDetails
        },
        {
            path: '/arrivalTime',
            component: arrivalTime
        },
        {
            name:'whereUps',
            path: '/whereUps',
            component: whereUps
        },
        {
            path: '/whereDowns',
            component: whereDowns
        },
        {
            path: '/surePrice',
            component: surePrice
        }
    ]
})
